package cn.sq.musicserver.plug.model.jsososo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * Created with IntelliJ IDEA.
 * User: SQ
 * Date: 2020/12/17
 * Time: 13:20
 * Description: 下载返回值
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "jsososo下载返回值", description = "jsososo下载返回值")
public class DownloadResult {

    /**
     * result : 100
     * data : {"url":"http://isure.stream.qqmusic.qq.com/M800004cZvLj1qDq4A.mp3?guid=4030887&vkey=0817D76A2EB729B6D2144E3C4067A8C375B35D33382FF0DA3379C4BDD9D089D63F858CC8ACCE099CCD3875AC1AA1B2701AE90C0AE4158656&uin=1899&fromtag=66","br":320000}
     */
    @ApiModelProperty(value = "返回码")
    private int result;
    @ApiModelProperty(value = "返回data")
    private DataBean data;


    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @ApiModel(value = "jsososo下载返回值-下载地址", description = "jsososo下载返回值-下载地址")
    public static class DataBean {
        /**
         * url : http://isure.stream.qqmusic.qq.com/M800004cZvLj1qDq4A.mp3?guid=4030887&vkey=0817D76A2EB729B6D2144E3C4067A8C375B35D33382FF0DA3379C4BDD9D089D63F858CC8ACCE099CCD3875AC1AA1B2701AE90C0AE4158656&uin=1899&fromtag=66
         * br : 320000
         */
        @ApiModelProperty(value = "下载地址")
        private String url;
        @ApiModelProperty(value = "码率")
        private int br;
        @ApiModelProperty(value = "文件类型")
        private String suffix;


    }
}
